import { IsNumber, IsOptional, IsString, IsArray, Min, Max } from 'class-validator';

export class CreateMatchPreferenceDto {
  @IsNumber()
  @Min(0)
  @Max(120)
  @IsOptional()
  minAge?: number;

  @IsNumber()
  @Min(0)
  @Max(120)
  @IsOptional()
  maxAge?: number;

  @IsArray()
  @IsString({ each: true })
  @IsOptional()
  preferredInterests?: string[];

  @IsString()
  @IsOptional()
  preferredLocation?: string;

  @IsNumber()
  @Min(0)
  @Max(100)
  @IsOptional()
  maxDistance?: number;
}